#include "Color.h"

void setColor(Color c)
{
	glColor4f(c.r/255.0f,c.g/255.0f,c.b/255.0f,c.a/255.0f);
}
void setColor(int r, int g, int b, int a)
{
	glColor4f(r/255.0f,g/255.0f,b/255.0f,a/255.0f);
}
void setColor(int r, int g, int b)
{
	glColor4f(r/255.0f,g/255.0f,b/255.0f,1.0f);
}

void clearColor(Color c)
{
	glClearColor(c.r/255.0f,c.g/255.0f,c.b/255.0f,1.0f);
}

void clearColor(int r, int g, int b)
{
	glClearColor(r/255.0f,g/255.0f,b/255.0f,1.0f);
}